//
//  WriterTableViewCell.m
//  TextApplication
//
//  Created by dllo on 16/9/3.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "WriterTableViewCell.h"
#import "TAMacro.h"
@implementation WriterTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _picImageView = [[UIImageView alloc] init];
        _nameLabel = [[UILabel alloc] init];
        _titleLabel = [[UILabel alloc] init];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _picImageView.frame = CGRectMake(10, 5, CONTENTHEIGHT - 10, CONTENTHEIGHT - 10);
    _picImageView.layer.cornerRadius = (CONTENTHEIGHT - 10) / 2;
    _picImageView.layer.masksToBounds = YES;
    [self.contentView addSubview:_picImageView];
    
    _nameLabel.frame = CGRectMake(CONTENTHEIGHT + 10, CONTENTHEIGHT / 4, CONTENTWIDTH / 4 * 3, 30);
    _nameLabel.textColor = [UIColor blackColor];
    _nameLabel.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:_nameLabel];
    
    _titleLabel.frame = CGRectMake(CONTENTHEIGHT + 10, CONTENTHEIGHT / 4 + 30 , CONTENTWIDTH - CONTENTHEIGHT - 10, 15);
    _titleLabel.textColor = [UIColor grayColor];
    _titleLabel.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:_titleLabel];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
